**************************************
**Replication File for Newman et al.**
**************************************

*NOTE: This file provides the code necessary to replicate the main findings presented in the published manuscript

tab condition
*lists conditions 1-6
tab1 cond1-cond6
*a dummy variable was created for each of these six conditions

**Model Commands**

*Figure 1 Panel A / Table A1 column 1
ologit rr_darren_prej hprej_01 cond2 cond3 cond4 cond5 cond6 hprej_01Xcond2 hprej_01Xcond3 hprej_01Xcond4 hprej_01Xcond5 hprej_01Xcond6
*Table A1 column 2
ologit rr_darren_prej hprej_01 cond2 cond3 cond4 cond5 cond6 hprej_01Xcond2 hprej_01Xcond3 hprej_01Xcond4 hprej_01Xcond5 hprej_01Xcond6 education_01 income_01 age male black latino asian unemployed partyid_01 attention_election_01
*Figure 1 Panel B
estsimp ologit rr_darren_prej hprej_01 if condition==1
setx mean
simqi, fd(prval(3)) changex(hprej_01 0 1) level(90)
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b5
estsimp ologit rr_darren_prej hprej_01 if condition==2
simqi, fd(prval(3)) changex(hprej_01 0 1) level(90)
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b5
estsimp ologit rr_darren_prej hprej_01 if condition==3
simqi, fd(prval(3)) changex(hprej_01 0 1) level(90)
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b5
estsimp ologit rr_darren_prej hprej_01 if condition==4
simqi, fd(prval(3)) changex(hprej_01 0 1) level(90)
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b5
estsimp ologit rr_darren_prej hprej_01 if condition==5
simqi, fd(prval(3)) changex(hprej_01 0 1) level(90)
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b4
estsimp ologit rr_darren_prej hprej_01 if condition==6
simqi, fd(prval(3)) changex(hprej_01 0 1) level(90)
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b5
*Figure 1 Panel C
sum hprej_01, det
ologit rr_darren_prej cond2 cond3 cond4 cond5 cond6 if hprej_01<.125, level(90)
ologit rr_darren_prej cond2 cond3 cond4 cond5 cond6 if hprej_01>.437, level(90)

*Figure 2 Panel A / Table A2 column 1
ologit rr_nancy_prej hprej_01 cond2 cond3 cond4 cond5 cond6 hprej_01Xcond2 hprej_01Xcond3 hprej_01Xcond4 hprej_01Xcond5 hprej_01Xcond6
*Table A2 column 2
ologit rr_nancy_prej hprej_01 cond2 cond3 cond4 cond5 cond6 hprej_01Xcond2 hprej_01Xcond3 hprej_01Xcond4 hprej_01Xcond5 hprej_01Xcond6 education_01 income_01 age male black latino asian unemployed partyid_01 attention_election_01

*Figure 3 Panel A / Table A3 column 1
ologit juan_rating hprej_01 cond2 cond3 cond4 cond5 cond6 hprej_01Xcond2 hprej_01Xcond3 hprej_01Xcond4 hprej_01Xcond5 hprej_01Xcond6
*Table A3 column 2
ologit juan_rating hprej_01 cond2 cond3 cond4 cond5 cond6 hprej_01Xcond2 hprej_01Xcond3 hprej_01Xcond4 hprej_01Xcond5 hprej_01Xcond6 education_01 income_01 age male black latino asian unemployed partyid_01 attention_election_01
*Figure 3 Panel B
estsimp ologit juan_rating hprej_01 if condition==1
setx mean
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b4
estsimp ologit juan_rating hprej_01 if condition==2
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b3
estsimp ologit juan_rating hprej_01 if condition==3
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b3
estsimp ologit juan_rating hprej_01 if condition==4
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b3
estsimp ologit juan_rating hprej_01 if condition==5
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b4
estsimp ologit juan_rating hprej_01 if condition==6
simqi, fd(prval(5)) changex(hprej_01 0 1) level(90)
drop b1-b4

*Figure 4 Panel A / Table A4 column 1
ologit rr_darren_prej hprej_01 selfmon1 hprej_01Xselfmon1 if condition==6, level(90)
*Figure 4 Panel B / Table A4 column 2
ologit rr_darren_prej hprej_01 selfmon5 hprej_01Xselfmon5 if condition==6, level(90)
*Figure 4 Panel C / Table A4 column 3
ologit rr_darren_prej hprej_01 selfmon2 hprej_01Xselfmon2 if condition==6, level(90)
*Figure 4 Panel D / Table A4 column 4
ologit rr_darren_prej hprej_01 selfmon3 hprej_01Xselfmon3 if condition==6, level(90)


